﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Doc.SDK.Core.RequestBuilder
{
    public class QQDocUrlBuilder
    {
        private readonly string _host;

        public QQDocUrlBuilder(string host)
        {
            _host = host;
        }
       
        public string Build(string path, GetRequest request = null)
        {
            if (request != null)
            {
                return $"https://{_host}{path}?{request.BuildParams()}";
            }
            else
            {
                return $"https://{_host}{path}";
            }
        }
        
    }
}
